<script setup lang="ts">
import { useAppStore } from '@/stores/app'
import { NButton, NCard } from 'naive-ui'

const store = useAppStore()
</script>

<template>
  <main class="about-page">
    <section class="about-hero">
      <div class="hero-content">
        <h1>关于我们</h1>
        <p class="hero-description">{{ store.organization.description }}</p>
      </div>
    </section>

    <section class="about-content">
      <div class="content-wrapper">
        <div class="mission">
          <h2>我们的愿景</h2>
          <p>让每一位开发者都能轻松掌握和运用仓颉语言，创造优秀的软件作品。</p>
        </div>

        <div class="values">
          <h2>核心价值观</h2>
          <div class="values-grid">
            <NCard class="value-item" :bordered="false" :style="{
              background: 'linear-gradient(165deg, rgba(40, 40, 45, 0.8), rgba(25, 25, 30, 0.9))',
              border: '1px solid rgba(123, 130, 255, 0.08)',
              backdropFilter: 'blur(12px)'
            }">
              <template #header>
                <div class="value-icon">🎯</div>
              </template>
              <h3>专业专注</h3>
              <p>深入研究仓颉语言，提供专业的技术内容</p>
            </NCard>
            <NCard class="value-item" :bordered="false" :style="{
              background: 'linear-gradient(165deg, rgba(40, 40, 45, 0.8), rgba(25, 25, 30, 0.9))',
              border: '1px solid rgba(123, 130, 255, 0.08)',
              backdropFilter: 'blur(12px)'
            }">
              <template #header>
                <div class="value-icon">📚</div>
              </template>
              <h3>知识分享</h3>
              <p>整理优质学习资源，降低入门门槛</p>
            </NCard>
            <NCard class="value-item" :bordered="false" :style="{
              background: 'linear-gradient(165deg, rgba(40, 40, 45, 0.8), rgba(25, 25, 30, 0.9))',
              border: '1px solid rgba(123, 130, 255, 0.08)',
              backdropFilter: 'blur(12px)'
            }">
              <template #header>
                <div class="value-icon">💡</div>
              </template>
              <h3>开放创新</h3>
              <p>保持开放态度，鼓励创新实践</p>
            </NCard>
            <NCard class="value-item" :bordered="false" :style="{
              background: 'linear-gradient(165deg, rgba(40, 40, 45, 0.8), rgba(25, 25, 30, 0.9))',
              border: '1px solid rgba(123, 130, 255, 0.08)',
              backdropFilter: 'blur(12px)'
            }">
              <template #header>
                <div class="value-icon">🤝</div>
              </template>
              <h3>互助共进</h3>
              <p>互帮互助，共同进步成长</p>
            </NCard>
          </div>
        </div>

        <div class="join-us">
          <NCard :bordered="false" :style="{
            background: 'linear-gradient(165deg, rgba(40, 40, 45, 0.8), rgba(25, 25, 30, 0.9))',
            border: '1px solid rgba(123, 130, 255, 0.08)',
            backdropFilter: 'blur(12px)',
            padding: '2rem'
          }">
            <h2>加入我们</h2>
            <p>我们欢迎对仓颉语言感兴趣的开发者加入社区。无论你是初学者还是经验丰富的开发者，都可以在这里找到合适的参与方式。</p>
            <div class="cta-buttons">
              <NButton 
                size="large"
                tag="a"
                href="https://gitcode.com/OpenCangjieCommunity"
                target="_blank"
                :style="{
                  background: 'linear-gradient(135deg, #7b82ff 0%, #9ba0ff 100%)',
                  border: 'none',
                  color: '#ffffff',
                  padding: '0.8rem 2rem',
                  fontWeight: '500',
                  boxShadow: '0 4px 16px rgba(123, 130, 255, 0.3)',
                  transition: 'all 0.3s ease'
                }"
                :hover-style="{
                  background: 'linear-gradient(135deg, #8a91ff 0%, #a5a9ff 100%)',
                  transform: 'translateY(-2px)',
                  boxShadow: '0 6px 20px rgba(123, 130, 255, 0.4)'
                }"
              >
                加入社区
              </NButton>
            </div>
          </NCard>
        </div>
      </div>
    </section>
  </main>
</template>

<style scoped>
.about-page {
  width: 100%;
}

.about-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(123, 130, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.about-hero h1 {
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-content {
  padding: 4rem 2rem;
  background-color: #1a1a1a;
  min-height: 60vh;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.mission {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7b82ff, #9ba0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mission p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.7;
}

.values h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 3rem;
  font-weight: 600;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(123, 130, 255, 0.15), rgba(123, 130, 255, 0.05));
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 0 auto;
}

.value-item h3 {
  color: #7b82ff;
  font-size: 1.5rem;
  margin: 1rem 0;
  font-weight: 600;
}

.value-item p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.join-us {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.join-us h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.join-us p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .about-hero {
    padding: 6rem 1rem 3rem;
  }

  .about-hero h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .about-content {
    padding: 3rem 1rem;
  }

  .content-wrapper {
    gap: 4rem;
  }

  .mission h2,
  .values h2,
  .join-us h2 {
    font-size: 2rem;
  }

  .mission p {
    font-size: 1.1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 1.5rem;
  }

  .join-us {
    padding: 2rem 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-hero h1 {
    font-size: 3rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
</style> 